# -*- coding: utf-8 -*-
# @Time    : 2019/5/15 20:04
# @Author  : Igor
# @File    : pysnooper_demo.py
# @Software: PyCharm

import pysnooper


@pysnooper.snoop()
def test():
    b = []
    sum = 0
    while True:
        a = input("请输入一个数字:")
        b.append(a)
        b.reverse()
        print("倒序:",b)
        sum += int(b[0])
        print("数字总和为:",sum)


test()